<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
	<form method="post">
		court name
		<input type="text" name="courtName" value="${courtName }"/>
		<input type="submit" value="query"/>
	</form>

	<table>
		<tr>
			<th>court name</th>
			<th>date</th>
			<th>player</th>
			<th>hour</th>
		</tr>	
		
		<c:forEach items="${reservations}" var="reservation" >
		<tr>
			<td>${reservation.courtName }</td>
			<td>${reservation.date }</td>
			<td>${reservation.player }</td>
			<td>${reservation.hour }</td>
		</tr>			
		</c:forEach>
	</table>

</body>
</html>